package com.TestDemo.Test2;

public class TestException {
    public static void main(String[] args) {

        System.out.println(0);
        try{
            int i = 100 / 0;
            System.out.print(i);
            throw new RuntimeException();
        }catch(Exception e){
            System.out.println(1);
            try{
                System.out.println("t1");
            }catch (Exception e1){
                System.out.println("t2");
                e1.printStackTrace();

                throw new RuntimeException();
            }finally {
                System.out.println("t3");
            }

        }finally{

            System.out.print(2);

        }
        System.out.print(3);
    }
}
